package com.mspbots.core.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mspbots.core.AbstractBaseServiceImpl;
import com.mspbots.core.system.mapper.SystemConfigurationMapper;
import com.mspbots.core.system.model.SystemConfiguration;
import com.mspbots.core.system.service.SystemConfigurationService;
import org.springframework.stereotype.Service;

/**
 * @author billb
 */
@Service
public class SystemConfigurationImpl extends AbstractBaseServiceImpl<SystemConfigurationMapper, SystemConfiguration> implements SystemConfigurationService {

    @Override
    public SystemConfiguration selectByKeyword(String keyword) {
        return this.baseMapper.selectOne(new QueryWrapper<SystemConfiguration>().eq("keyword", keyword));
    }

}
